var topicCommentsFrame = MCGlobals.TopicCommentsFrame;
topicCommentsFrame.RefreshComments();
}
function FMCBodyGetRatingOnComplete( averageRating, ratingCount, onCompleteArgs )
{
var toolbarFrame = MCGlobals.ToolbarFrame;
toolbarFrame.SetRating( averageRating );
}
function FMCCheckForBookmark()
{
var hash = document.location.hash;
if ( !hash )
{
return;
}
var bookmark = null;
if ( hash.charAt( 0 ) == "#" )
{
hash = hash.substring( 1 );
}
var currAnchor = null;
for ( var i = 0; i < document.anchors.length; i++ )
{
currAnchor = document.anchors[i];
if ( currAnchor.name == hash )
{
bookmark = currAnchor;
break;
}
}
if ( currAnchor )
{
FMCUnhide( window, currAnchor );
// Mozilla didn't navigate to the bookmark on load since it was inside a hidden node. So, after we ensure it's visible, navigate to the bookmark again.
if ( !document.body.currentStyle )
{
document.location.href = document.location.href;
}
}
}
function FMCSyncTOC()
{
if ( !MCGlobals.NavigationFrame.frames["toc"] || MCGlobals.BodyFrame.document != document )
{
return;
}
var tocPath = FMCGetMCAttribute( document.documentElement, "MadCap:tocPath" );